package 线程.day1.demo2;

public class T {
    public static void main(String[] args) {
        Thread t=new Thread(){
            @Override
            public void run() {
                pong();
            }
        };
        //t.run();
        t.start();
        try {
            Thread.sleep(1);
        } catch (InterruptedException e) {}
        System.out.println("ping");

        t.start();
    }

    static void pong(){
        System.out.println("pong");
    }
}
